<?php
	// these are include_once() instead of require_once() because the extra fill
	// in utility needs to require this file without errors, and the paths are
	// never going to be correct
	require_once($_SERVER["DOCUMENT_ROOT"]."/modules/pd_character.php");

	class AlertAccount {
		private $id;
                private $pilotId;
		private $name;
		private $level;
		private $validation;
                private $basic_scripts;
                private $advanced_scripts;
                private $admin_scripts;
                private $ffm_upload;
                private $secret_scripts;

		public function __construct($id = 0, $name, $level, $validation, $pilotId=0, $basic = 0, $advanced = 0, $admin = 0, $secret = 0, $ffm = 0) {
			$this->id = $id;
                        $this->pilotId = $pilotId;
			$this->name = $name;
			$this->level = $level;
			$this->validation= $validation;
                        $this->basic_scripts = $basic;
                        $this->advanced_scripts = $advanced;
                        $this->admin_scripts = $admin;
                        $this->secret_scripts = $secret;
                        $this->ffm_upload = $ffm;
		}
		
		public function getId() {
			return $this->id;
		}
                
                public function getPilotId() {
                        return $this->pilotId;
                }

		public function getName() {
			return $this->name;
		}
		
		public function getLevel() {
			return $this->level;
		}

		public function drawName() {
			$char = new PD_Character($_SESSION["account"]->getUniverse(), $this->name);
			$char->drawName();
		}

		public function getValidation() {
			return $this->validation;
		}
                public function getBasic(){
                        return $this->basic_scripts;
                }
                
                public function getAdvanced(){
                        return $this->advanced_scripts;
                }
                
                public function getAdmin(){
                        return $this->admin_scripts;
                }
                
                public function getFFMUpload(){
                        return $this->ffm_upload;
                }
                
                public function getSecret(){
                        return $this->secret_scripts;
                }
	}
?>